package com.pro.mapper;

import com.pro.pojo.JsLoginRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName:JsMenuLoginRecordMapper
 * Package:com.pro.mapper
 * Description: 后台人员登录日志
 *
 * @Date:2022/3/18 下午 2:37
 * @Author: WYH
 */
public interface JsMenuLoginRecordMapper {

    /**
     * @Author WYH
     * @Description //TODO 查询后台人员登录日志
     * @Date 下午 3:00 2022/3/18
     * @Param account，trueName，limit，page
     * @return  List<JsLoginRecord>
     **/
    List<JsLoginRecord> getAllJsLoginRecord(@Param("account")String account,@Param("trueName")String trueName,@Param("loginType")Integer loginType,@Param("limit")Integer limit,@Param("page")Integer page);

    /**
     * @Author WYH
     * @Description //TODO 计算后台人员登录日志个数
     * @Date 下午 3:13 2022/3/18
     * @Param account，trueName ,loginType
     * @return Integer
     **/
    Integer countLoginRecord(@Param("account")String account,@Param("trueName")String trueName,@Param("loginType")Integer loginType);

    /**
     * @Author WYH
     * @Description //TODO 查询前台人员登录日志
     * @Date 下午 3:40 2022/3/18
     * @Param account，nickname，limit，page
     * @return  List<JsLoginRecord>
     **/
    List<JsLoginRecord> getAllJsLoginRecordbefore(@Param("account")String account,@Param("nickname")String nickname,@Param("loginType")Integer loginType,@Param("limit")Integer limit,@Param("page")Integer page);

    /**
     * @Author WYH
     * @Description //TODO 计算前台人员登录日志个数
     * @Date 下午 3:55 2022/3/18
     * @Param account，nickname ,loginType
     * @return Integer
     **/
    Integer countLoginRecordbefore(@Param("account")String account,@Param("nickname")String nickname,@Param("loginType")Integer loginType);

    /**
     * @Author WYH
     * @Description //TODO 删除登录日志
     * @Date 下午 4:25 2022/3/18
     * @Param id
     * @return true | false
     **/
    Boolean delLooginUser(Integer id);
}
